		
	$(function() {
		$(document).ready(function(){	
			$('select').not("select.chzn-select").selectmenu({
				 style: 'dropdown',
		         transferClasses: true,
		         width: null		
			});
		});
		$(".chzn-select").chosen(); 
     // form validationEngine
        $('form#validation').validationEngine(); 
        $('.ck').customInput();
     // input filter
        $('.numericonly input').autotab_magic().autotab_filter('numeric');
        $('.textonly input').autotab_magic().autotab_filter('text');
        $('.alphaonly input').autotab_magic().autotab_filter('alpha');
        $('.regexonly input').autotab_magic().autotab_filter({ format: 'custom', pattern: '[^0-9\.]' });
        $('.alluppercase input').autotab_magic().autotab_filter({ format: 'alphanumeric', uppercase: true }); 
        
        $( "input.dateStart" ).datepicker({
    		changeMonth: true,
    		changeYear: true,
    		dateFormat:'yy-mm-dd'
        });
        $( "input.dateEnd" ).datepicker({
    		changeMonth: true,
    		changeYear: true,
    		dateFormat:'yy-mm-dd'
        });
    });
